function getProvinceStore(){
	var provinceStore = new Ext.data.Store({
		proxy : new Ext.data.HttpProxy({
					url : 'Province!queryProvinceList.action'
				}),
		reader : new Ext.data.JsonReader({
					root : 'resultL',
					id : 'id'
				}, [{
							name : 'province_id',
							mapping : 'province_id'
						}, {
							name : 'province_name',
							mapping : 'province_name'
						}])
	});
	provinceStore.load()
	return provinceStore;
}

function getCityStore(){
	var cityStore = new Ext.data.Store({
				proxy : new Ext.data.HttpProxy({
							url : 'City!queryCityByProviceId.action?province_id='
						}),
				reader : new Ext.data.JsonReader({
							root : 'resultCity',
							id : 'id'
						}, [{
									name : 'CITY_ID',
									mapping : 'CITY_ID'
								}, {
									name : 'CITY_NAME',
									mapping : 'CITY_NAME'
								}])

			});
	return cityStore;
}

/*---------------------------联动-------------------------------
proviceCombox.on('select', function() {

	cityCombox.reset();

	cityStore.proxy = new Ext.data.HttpProxy({
				url : 'City!queryCityByProviceId.action?province_id='
						+ proviceCombox.getValue()
			});

	cityStore.load();

});


----------------------------------------exg---------------------------------------------
function cityAndProvince(cityCombox,proviceCombox){
		// 省份的数据源
	var provinceStore = new Ext.data.Store({
				proxy : new Ext.data.HttpProxy({
							url : 'Province!queryProvinceList.action'
						}),
				reader : new Ext.data.JsonReader({
							root : 'resultL',
							id : 'id'
						}, [{
									name : 'province_id',
									mapping : 'province_id'
								}, {
									name : 'province_name',
									mapping : 'province_name'
								}])
			});

	// 市的数据源
	var cityStore = new Ext.data.Store({

				proxy : new Ext.data.HttpProxy({
							url : 'City!queryCityByProviceId.action?province_id='
						}),
				reader : new Ext.data.JsonReader({
							root : 'resultCity',
							id : 'id'
						}, [{
									name : 'CITY_ID',
									mapping : 'CITY_ID'
								}, {
									name : 'CITY_NAME',
									mapping : 'CITY_NAME'
								}])

			});

	// 市的下拉框
	 cityCombox = new Ext.form.ComboBox({
				store : cityStore,
				valueField : "CITY_ID",
				displayField : "CITY_NAME",
				fieldLabel : '城市',
				name : 'city_name',
				id : 'city_name',
				anchor : '90%',
				allowBlank : false,
				blankText : '城市不能为空',
				emptyText : '请选择城市',
				triggerAction : 'all',
				editable : false

			});

	/**
	 * 省份的下拉框
	 *
	 proviceCombox = new Ext.form.ComboBox({
				store : provinceStore,
				valueField : "province_id",
				displayField : "province_name",
				fieldLabel : '省份名称',
				name : 'PROVINCE_NAME1',
				id : 'PROVINCE_NAME1',
				anchor : '90%',
				allowBlank : false,
				blankText : '省份名称不能为空',
				emptyText : '请选择省份名称',
				triggerAction : 'all',
				editable : false

			});
	proviceCombox.render(Ext.getBody());
	cityCombox.render(Ext.getBody());

	provinceStore.load();

	
			
			
	return cityCombox,proviceCombox;
}
*/

function getSocialType(){
	var socialTypeStore = new Ext.data.Store({
		proxy : new Ext.data.HttpProxy({
			url : 'socialType!QueryPbSocialType.action'
		}),
		reader : new Ext.data.JsonReader({
			root : 'resultAll',
			id : 'social_typeid'
		}, [{
			name : 'social_typeid',
			mapping : 'social_typeid'
		}, {
			name : 'social_typename',
			mapping : 'social_typename'
		}])
	});
	socialTypeStore.load();
	return socialTypeStore;
}
